<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Services\Admin\Order;
use App\Http\Requests\Admin\OrderController\doRule;

class OrderController extends Controller
{
    public function index()
    {
        $result = [
            'result'=>Order::lists(),
            'sear_value' => \request()->get('sear_value'),
            'is_receive' => \request()->get('is_receive'),
        ];

        return view('admin.order.index', $result);
    }

    public function edit(Request $request, $id)
    {
        Order::receive($id);

        return self::success([]);
    }
}
